package com.wt.admin.service;


import com.wt.admin.service.sys.SysOperationLogService;
import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledService {

    @Resource
    private SysOperationLogService sysOperationLogService;

    /**
     * 每天凌晨一点
     */
    @Scheduled(cron = "0 0 1 * * ?")
    public void day() {
        sysOperationLogService.clear();
    }


}
